Skip to content

docs: add Cloudflare Workers AI provider#18322

Merged
rekram1-node merged 3 commits intoanomalyco:devfrom
mchenco:mchen/add-workers-ai-provider
Mar 20, 2026
Merged

docs: add Cloudflare Workers AI provider#18322
rekram1-node merged 3 commits intoanomalyco:devfrom
mchenco:mchen/add-workers-ai-provider

Conversation

@mchenco
Copy link
Contributor

@mchenco mchenco commented Mar 20, 2026

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a Cloudflare Workers AI entry to the providers directory, placed right after Cloudflare AI Gateway. The backend support (cloudflare-workers-ai) already exists in the codebase — this just adds the missing docs so users can find and set it up.

Setup requires CLOUDFLARE_ACCOUNT_ID and a Workers AI API token (CLOUDFLARE_API_KEY), both obtainable from the Workers AI dashboard. Models are sourced from models.dev (42 models via @ai-sdk/openai-compatible against the Workers AI OpenAI-compatible endpoint).

How did you verify your code works?

Checked that cloudflare-workers-ai is already a registered custom loader in provider.ts with the correct env var names, and confirmed models.dev returns the provider with the right api URL, npm package, and model list.

Screenshots / recordings

N/A — docs-only change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@rekram1-node rekram1-node merged commit 83023e4 into anomalyco:dev Mar 20, 2026
8 checks passed
HacknBashe pushed a commit to HacknBashe/opencode that referenced this pull request Mar 21, 2026
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants